define([], function() {
    var tpl = {};

    tpl.queryAllScheme = function() {
        return queryAllScheme();
    }
    tpl.add = function() {
        return add;
    }
    var queryAllScheme = function() {
        return  '<script id="programList_queryAllScheme" type="text/html">' +
                '   {{if list.length>0}}' +
                '       {{each list as value i}}' +
                '           <div class="program-item" id="{{value.id}}">' +
                '               <div class="scheme-name">{{value.scheme_name}}</div>' +
                '               <div class="clearfix">' +
                '                   <span class="delProgram">删除</span>' +
                '                   <span class="editProgram">编辑</span>' +
                '                   <span class="copyProgram">复制</span>' +
                '               </div>' +
                '           </div>' +
                '       {{/each}}' +
                '   {{else}}' +
                '       <div class="no-scheme"><i class="fa fa-university" aria-hidden="true"></i>没有方案</div>' +
                '   {{/if}}' +
                '</script>';
    }
    var add = function() {
        return  '<script id="programList_add" type="text/html">' +
                '	<div class="programList-modal">' +
                '       <div class="form-horizontal">'+
                '           <div class="form-group">' +
                '               <label class="control-label">方案名称</label>'+
                '               <div class="control-input">'+
                '                   <input class="form-control" type="text" id="schemeName" autocomplete="off">' +
                '               </div>' +
                '           </div>' +
                '       </div>'+
                '       <div class="btn-addscheme" id="add">确定</div>' +
                '   </div>' +
                '</script>';
    }

    return tpl;
});